package com.cty.service.impl;

import com.alibaba.dubbo.config.annotation.Reference;
import com.cty.dubbo.service.DemoService;
import com.cty.service.ConsumerService;

/**
 * @Auther: cty
 * @Date: 2020/3/25 15:31
 * @Description:
 * @version: 1.0
 */
public class ConsumerServiceImpl implements ConsumerService {
    @Reference
    private DemoService demoService;

    @Override
    public void test() {
        // 调用Provider提供的服务
        String res = demoService.demo("张三");
        System.out.println(res);

    }
}
